package com.heima.pri01;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class ZiFuLiu03 {
    public static void main(String[] args) throws IOException {
        //读取数据,一次读取1个
        FileReader fi=new FileReader("day11\\a.txt");
       int b;
        while ((b=fi.read())!=-1){
            System.out.println((char)b);
        }
        fi.close();
    }
}
